<!--模块属性-->
<form class="J_design_module_form" action="<?php echo Wind::getComponent('response')->getData('G', 'url', 'base'),'/','index.php?m=design&c=property&a=doadd&_json=1'; ?>" method="post">
	<div class="ct J_scroll_fixed">
		<div class="pop_cont">
			
		<dl class="cc">
			<dt>模块名称：</dt>
			<dd><span class="must_red">*</span><input type="text"  class="input length_5" name="module_name" value="<?php echo htmlspecialchars($module['module_name'], ENT_QUOTES, 'UTF-8');?>"></dd>
		</dl>
	<?php  foreach($property AS $k=>$v){
		$v3t = 'array';
		if (!empty($v[3]) && !is_array($v[3])){
			list($v3, $v3t) = explode('|',$v[3]);
			$v[3] = $decorator[$v3];
		 }
	
  if($v[0] == 'text'){ ?>
		<dl class="cc">
			<dt><?php echo htmlspecialchars($v[1], ENT_QUOTES, 'UTF-8');?>：</dt>
			<?php  
			$cls='length_1';
			if($v[4] == 'long'){ 
				$cls='length_5';
			}
			
  if($v3t == 'html' && !$vProperty[$k]){ ?>
			<dd><input type="text" class="input <?php echo htmlspecialchars($cls, ENT_QUOTES, 'UTF-8');?> mr10"  name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>]" value="<?php echo htmlspecialchars($vProperty[$k], ENT_QUOTES, 'UTF-8');?>">
				<?php  if ($cls=='length_5'){ ?>
					<p class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></p>
				<?php  }else{ ?>
					<span class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></span>
				<?php  } ?>
			</dd>
			<?php  }else{ ?>
			<dd><input type="text" class="input <?php echo htmlspecialchars($cls, ENT_QUOTES, 'UTF-8');?> mr10"  name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>]" value="<?php echo htmlspecialchars($vProperty[$k], ENT_QUOTES, 'UTF-8');?>">
				<?php  if ($cls=='length_5'){ ?>
					<p class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></p>
				<?php  }else{ ?>
					<span class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></span>
				<?php  } ?>
			</dd>
			<?php  } ?>	
		</dl>
	<?php  } 
  if($v[0] == 'select'){ ?>
		<dl class="cc">
			<dt><?php echo htmlspecialchars($v[1], ENT_QUOTES, 'UTF-8');?>：</dt>
			<dd>
				<?php  if($v[4] == 'multiple'){ ?>
				<select class="select_5 mr10" name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>][]" size="8" <?php echo htmlspecialchars($v[4], ENT_QUOTES, 'UTF-8');?>>
				<?php  }else{ ?>
				<select class="select_5 mr10" name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>]">
				<?php  } 
  if($v3t == 'html'){ 
 echo $v[3];
  }else{ 
  foreach((array)$v[3] AS $_k=>$_v){ ?>
					<option value="<?php echo htmlspecialchars($_k, ENT_QUOTES, 'UTF-8');?>" <?php echo htmlspecialchars(Pw::isSelected($vProperty[$k] == $_k), ENT_QUOTES, 'UTF-8');?>><?php echo htmlspecialchars($_v, ENT_QUOTES, 'UTF-8');?></option>
					<?php  } 
  } ?>	
				</select>
				<span class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></span>
			</dd>
		</dl>
	<?php  } 
  if($v[0] == 'radio'){ ?>
		<dl class="cc">
			<dt><?php echo htmlspecialchars($v[1], ENT_QUOTES, 'UTF-8');?>：</dt>
			<dd>
				<ul class="three_list">
				<?php  if($v3t == 'array'){ 
  foreach((array)$v[3] AS $_k=>$_v){?>
					<li><label class="mr20"><input type="radio" value="<?php echo htmlspecialchars($_k, ENT_QUOTES, 'UTF-8');?>" name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>]"  <?php echo htmlspecialchars(Pw::ifcheck($vProperty[$k] == $_k), ENT_QUOTES, 'UTF-8');?>><span><?php echo htmlspecialchars($_v, ENT_QUOTES, 'UTF-8');?></span></label></li>
					<?php  } 
  }else{ 
 echo $v[3];
  } ?>	
				</ul>
				<span class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></span>
			</dd>
		</dl>
	<?php  } 
  if($v[0] == 'checkbox'){ ?>
		<dl class="cc">
			<dt><?php echo htmlspecialchars($v[1], ENT_QUOTES, 'UTF-8');?>：</dt>
			<dd>
				<ul class="three_list">
				<?php  if($v3t == 'array'){ 
  foreach((array)$v[3] AS $_k=>$_v){ ?>
					<li><label class="mr20"><input type="checkbox" value="<?php echo htmlspecialchars($_k, ENT_QUOTES, 'UTF-8');?>" name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>][]" <?php echo htmlspecialchars(Pw::ifcheck(Pw::inArray($_k,(array)$vProperty[$k])), ENT_QUOTES, 'UTF-8');?>><span><?php echo htmlspecialchars($_v, ENT_QUOTES, 'UTF-8');?></span></label></li>
					<?php  } 
  }else{ 
 echo $v[3];
  } ?>	
				</ul>
				<span class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></span>
			</dd>
		</dl>
	<?php  } 
  if($v[0] == 'textarea'){ ?>
		<dl class="cc">
			<dt><?php echo htmlspecialchars($v[1], ENT_QUOTES, 'UTF-8');?>：</dt>
			<dd>
			<?php  if($v3t == 'html' && !$vProperty[$k]){ ?>
				<textarea class="length_6 mb5" style="width:450px;height:230px;"  name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>]"><?php echo htmlspecialchars($v[3], ENT_QUOTES, 'UTF-8');?></textarea><p class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></p>
			<?php  }else{ ?>
				<textarea class="length_6 mb5" style="width:450px;height:230px;" name="property[<?php echo htmlspecialchars($k, ENT_QUOTES, 'UTF-8');?>]"><?php echo htmlspecialchars($vProperty[$k], ENT_QUOTES, 'UTF-8');?></textarea><p class="gray"><?php echo htmlspecialchars($v[2], ENT_QUOTES, 'UTF-8');?></p>
			<?php  } ?>
			</dd>
		</dl>
	<?php  } 
  if($v[0] == 'html'){
		list($tpl,$name) = explode('|', $v[4]);
	
 PwHook::segment("TPL:design.property.$tpl", array($vProperty, $v[3]), "$name", "$tpl", $__viewer); 
  } 
  } 
  if($modelInfo['refresh']){ ?>
		<dl class="cc">
			<dt>数据更新周期：</dt>
			<dd><input type="text" class="input length_1 mr5" name="cache[expired]" value="<?php echo htmlspecialchars($cache['expired'], ENT_QUOTES, 'UTF-8');?>"><span class="mr20">分钟</span><span class="gray">0代表不更新</span></dd>
		</dl>
		<dl class="cc">
			<dt>数据更新区间：</dt>
			<dd>
				<div class="mb10">开始于&nbsp;
				<input type="text" class="input length_1 mr5" name="cache[start_hour]" value="<?php echo htmlspecialchars($cache['start_hour'], ENT_QUOTES, 'UTF-8');?>"><span class="mr20">时</span>
				<input type="text" class="input length_1 mr5" name="cache[start_minute]" value="<?php echo htmlspecialchars($cache['start_minute'], ENT_QUOTES, 'UTF-8');?>"><span>分</span></div>
				<div class="mb10">结束于&nbsp;
				<input type="text" class="input length_1 mr5" name="cache[end_hour]" value="<?php echo htmlspecialchars($cache['end_hour'], ENT_QUOTES, 'UTF-8');?>"><span class="mr20">时</span>
				<input type="text" class="input length_1 mr5" name="cache[end_minute]" value="<?php echo htmlspecialchars($cache['end_minute'], ENT_QUOTES, 'UTF-8');?>"><span>分</span></div>
			</dd>
		</dl>
	<?php  } ?>

		</div>
	</div>
	<div class="pop_bottom">
		<button type="submit" class="btn btn_submit" id="J_property_add">提交</button>
		<input type="hidden" name="model" value="<?php echo htmlspecialchars($model, ENT_QUOTES, 'UTF-8');?>">
		<input type="hidden" name="pageid" value="<?php echo htmlspecialchars($pageid, ENT_QUOTES, 'UTF-8');?>">
		<input type="hidden" name="struct" value="<?php echo htmlspecialchars($struct, ENT_QUOTES, 'UTF-8');?>">
	</div>
<input type="hidden" name="csrf_token" value="<?php echo WindSecurity::escapeHTML(Wind::getComponent('windToken')->saveToken('csrf_token')); ?>"/></form>